(defun cmdWait ()
  (while (= (logand (getvar "CMDACTIVE") 1) 1)
    (command pause)
  ) ;_ end of while
) ;_ end of defun
